flutter mirror-inverted widget

158

import 'dart:math' as math; // import this

Transform( //Wrap your widget with the Transform widget
  alignment: Alignment.center, //Default is left
  transform: Matrix4.rotationY(math.pi), //Mirror Widget
  child: Icon(Icons.rotate_left, size: 100,), //Your widget
)

Comments

Submit
0 Comments